{include file="public/head" /}
  
  <body>
    <div class="x-body">
        <form class="layui-form" method="post" action="#">
            <div class="layui-form-item">
                <label for="L_email" class="layui-form-label">
                    <span class="x-red">*</span>所属小区:
                </label>
                <div class="layui-input-inline" style="text-align: left; width:300px;">
                    <select id="community_id" name="community_id"  lay-verify="required">
                        <option value="" selected="true">请选择小区</option>
                        {foreach $communitylist as $comm}
                        <option value="{$comm.community_id}">{$comm.community_name}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_username" class="layui-form-label">
                    <span class="x-red"></span>组团:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="group" name="group" class="layui-input" style="width:300px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_username" class="layui-form-label">
                    <span class="x-red">*</span>楼栋:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="building" name="building" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_username" class="layui-form-label">
                    <span class="x-red">*</span>单元:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="unit" name="unit" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_username" class="layui-form-label">
                    <span class="x-red">*</span>房号:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="room" name="room" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_username" class="layui-form-label">
                    <span class="x-red">*</span>业主姓名:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="owner_name" name="owner_name" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_username" class="layui-form-label">
                    <span class="x-red">*</span>业主电话:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="owner_phone" name="owner_phone" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="parkspace车位号" class="layui-form-label">
                    <span class="x-red">*</span>车位号:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="parkspace" name="parkspace" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="car_number" class="layui-form-label">
                    <span class="x-red">*</span>车牌号:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="car_number" name="car_number" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="price" class="layui-form-label">
                    <span class="x-red">*</span>车位费用:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="price" name="price" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="status" class="layui-form-label">
                    <span class="x-red">*</span>状态:
                </label>
                <div class="layui-input-inline">
                    <select id="status" name="status"  lay-verify="required">
                        <option value="" selected="true">车位状态</option>
                        <option value="1">自用</option>
                        <option value="2">闲置</option>
                        <option value="3">已租</option>
                    </select>
                </div>
            </div>
            
            <div class="layui-form-item">
                <label for="lease_car_number" class="layui-form-label">
                    <span class="x-red"></span>租赁方车牌:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="lease_car_number" name="lease_car_number" 
                    autocomplete="off" class="layui-input" style="width:300px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="lease_name" class="layui-form-label">
                    <span class="x-red"></span>租赁方姓名:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="lease_name" name="lease_name"  
                    autocomplete="off" class="layui-input" style="width:300px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="lease_phone" class="layui-form-label">
                    <span class="x-red"></span>租赁方电话:
                </label>
                <div class="layui-input-inline"> <input type="text" id="lease_phone" name="lease_phone"
                    autocomplete="off" class="layui-input" style="width:300px;">
                </div>
            </div>
          <div class="layui-form-item">
              <label for="L_repass" class="layui-form-label">
              </label>
              <button  class="layui-btn" lay-filter="add" lay-submit="">
                添加房屋
            </button>
          </div>
      </form>
    </div>

    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })(); 
    </script>
  </body>

</html>